import { createApp } from 'vue'
import App from './App.vue'
import router from './router' //前端路由
import ElementPlus from 'element-plus'//饿了吗组件库
import 'element-plus/dist/index.css'
import axios from 'axios'//网络请求
import { createPinia } from 'pinia' //状态管理
const pinia = createPinia()

const app = createApp(App)
app.use(router)
app.use(ElementPlus)
app.use(pinia)
app.config.globalProperties.$axios = axios
app.mount('#app')
